package com.exam.service;

import com.exam.po.Announcement;

import java.util.List;

/**
 * @author zhanggaoxiang
 * @ClassName AnnounceService  通告
 * @Description TODO
 * @Date 2021/1/11 19:02
 * @Version 1.0
 **/
public interface AnnounceService {
    /**
     * @return java.util.List<com.exam.po.Announcement>
     * @Author zhanggaoxiang
     * @Description 分页查询所有通知
     * @Date 2021/1/11 19:56
     * @Param [page, size]
     **/
    List<Announcement> findAnnounceByPage(Integer page, Integer size);

    /**
     * @return int
     * @Author zhanggaoxiang
     * @Description 添加通告
     * @Date 2021/1/12 09:43
     * @Param [announcement]
     **/
    int addAnnounce(Announcement announcement);
    /**
     * @Author zhanggaoxiang
     * @Description 删除公告
     * @Date 2021/1/12 10:10
     * @Param [announcementid]
     * @return int
     **/
    int deleteAnnounceById(Integer announcementid);

    int findAnnounceCount();
}
